<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表</title>
    <link rel="stylesheet" type="text/css" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../../static/css/common.css">
    <link rel="stylesheet" type="text/css" href="../../static/css/fontface.css">

    <script src="../../static/js/jquery-3.3.1.min.js"></script>
    <script src="../../static/layui/layui.js"></script>
    <script src="../../static/js/use-layer.js"></script>
    <script src="../../api/resource/list.js"></script>
</head>
<body>
<div class="body_bg">
    <div class="layui-form">
        <table class="layui-table" id="table" lay-filter="optEvent"></table>
    </div>
</div>
<div class="layui-row" id="addContent" style="display: none;">
    <div class="layui-col-md10">
        <div class="block-20-px"></div>
        <form class="layui-form">
            <input type="hidden" id="parentId" />
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">名称：</label>
                <div class="layui-input-block">
                    <input type="text" name="name" id="name" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">页面：</label>
                <div class="layui-input-block">
                    <input type="text" name="page" id="page" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">图标：</label>
                <div class="layui-input-block">
                    <input type="text" name="icon" id="icon" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">顺序：</label>
                <div class="layui-input-block">
                    <input type="number" name="orders" id="orders" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">类型：</label>
                <div class="layui-input-block">
                    <select id="type">
                        <option value="MENU">菜单</option>
                        <option value="PAGE">页面</option>
                    </select>
                </div>
            </div>
            <div class="block-20-px"></div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="button" onclick="saveRs()" class="layui-btn layui-btn-normal">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

<div class="layui-row" id="updateContent" style="display: none;">
    <div class="layui-col-md10">
        <div class="block-20-px"></div>
        <form class="layui-form">
            <input type="hidden" id="id" />
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">名称：</label>
                <div class="layui-input-block">
                    <input type="text" name="name" id="name2" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">页面：</label>
                <div class="layui-input-block">
                    <input type="text" name="page" id="page2" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">图标：</label>
                <div class="layui-input-block">
                    <input type="text" name="icon" id="icon2" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">顺序：</label>
                <div class="layui-input-block">
                    <input type="number" name="orders" id="orders2" class="layui-input" />
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">类型：</label>
                <div class="layui-input-block">
                    <select id="type2">
                        <option value="MENU">菜单</option>
                        <option value="PAGE">页面</option>
                    </select>
                </div>
            </div>
            <div class="block-20-px"></div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="button" onclick="updateRs()" class="layui-btn layui-btn-normal">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>